起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2391|回复: 5

[处理中1] 初学者提问页面布局乱

[复制链接]

1

主题

6

帖子

18

积分

新手上路

Rank: 1

积分
18
QQ
发表于 2016-10-18 01:25:39 | 显示全部楼层 |阅读模式
     按照教程做页面布局显示好乱,请问是为什么
(5H%@}K)QSS{Q8@88[`B8~E.png

130

主题

357

帖子

1012

积分

金牌会员

Rank: 6Rank: 6

积分
1012
QQ
发表于 2016-10-18 08:49:55 | 显示全部楼层
是不是内容超出,然后把其它的挤下去了??
回复 支持 反对

使用道具 举报

0

主题

27

帖子

107

积分

初级会员

Rank: 2

积分
107
QQ
发表于 2016-10-18 09:03:39 | 显示全部楼层
把源码放出来,才好确定是什么问题
回复 支持 反对

使用道具 举报

1

主题

3232

帖子

1174

积分

金牌会员

Rank: 6Rank: 6

积分
1174
QQ
发表于 2016-10-18 13:41:41 | 显示全部楼层
样式问题,最好通过 f12 的浏览器开发者工具,通过审查元素找一下,你这个用的什么组件?list 里面套的是什么?
在问题解决后,希望大家可以吧解决方法也分享一下,这样可以让更多的X5开发者共同进步,谢谢大家的知识共享
回复 支持 反对

使用道具 举报

1

主题

6

帖子

18

积分

新手上路

Rank: 1

积分
18
QQ
 楼主| 发表于 2016-10-18 19:12:24 | 显示全部楼层
是list里面套list
回复 支持 反对

使用道具 举报

1

主题

6

帖子

18

积分

新手上路

Rank: 1

积分
18
QQ
 楼主| 发表于 2016-10-18 19:14:24 | 显示全部楼层
李依荀 发表于 2016-10-18 09:03
把源码放出来,才好确定是什么问题

是按照官方教程做的
<?xml version="1.0" encoding="utf-8"?>
<div xmlns="http://www.w3.org/1999/xhtml" component="$UI/system/components/justep/window/window" design="device:m;" xid="window" class="window">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="height:auto;top:326px;left:24px;">
  <div component="$UI/system/components/justep/data/data" autoLoad="true" xid="cartGoodsData" idColumn="id" onCustomRefresh="cartGoodsDataCustomRefresh"><column label="ID" name="id" type="String" xid="xid3"></column>
  <column label="商铺ID" name="fShopID" type="String" xid="xid4"></column>
  <column label="商品ID" name="fGoodsID" type="String" xid="xid5"></column>
  <column label="商品名称" name="fTitle" type="String" xid="xid6"></column>
  <column label="图片" name="fImg" type="String" xid="xid7"></column>
  <column label="现价" name="fPrice" type="Decimal" xid="xid8"></column>
  <column label="原价" name="fOldPrice" type="Decimal" xid="xid9"></column>
  <column label="规格" name="fSize" type="String" xid="xid10"></column>
  <column label="数量" name="fNumber" type="Decimal" xid="xid11"></column></div><div component="$UI/system/components/justep/data/data" autoLoad="true" xid="cartShopData" idColumn="id" onCustomRefresh="cartShopDataCustomRefresh"><column label="ID" name="id" type="String" xid="xid1"></column>
  <column label="商铺名称" name="fShopName" type="String" xid="xid2"></column></div></div>  
  <div component="$UI/system/components/justep/panel/panel"
    class="x-panel x-full" xid="panel1">
      <div class="x-panel-top" xid="top1">
        <div component="$UI/system/components/justep/titleBar/titleBar" title="标题"
          class="x-titlebar">
          <div class="x-titlebar-left">
            <a component="$UI/system/components/justep/button/button"
              label="" class="btn btn-link btn-only-icon" icon="icon-chevron-left"
              onClick="{operation:'window.close'}" xid="backBtn">
              <i class="icon-chevron-left"/>  
              <span></span>
            </a>
          </div>  
          <div class="x-titlebar-title">标题</div>  
          <div class="x-titlebar-right reverse">
          </div>
        </div>
      </div>  
    <div class="x-panel-content" xid="content1"><div component="$UI/system/components/justep/list/list" class="x-list" xid="list1" data="cartShopData" style="height:219px;">
   <ul class="x-list-template" xid="listTemplateUl1">
    <li xid="li1" style="height:109px;">
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row1">
   <div class="x-col x-col-fixed x-col-center" xid="col1" style="width:auto;"><span component="$UI/system/components/justep/button/checkbox" class="x-checkbox" xid="checkbox1"></span></div>
   <div class="x-col x-col-center" xid="col2"><span xid="span1" bind-text='val("fShopName")'></span></div>
   <div class="x-col x-col-fixed" xid="col3" style="width:auto;"></div></div>
  <div component="$UI/system/components/justep/list/list" class="x-list" xid="list2" data="cartGoodsData" filter=' $row.val("fShopID")== val("id")'>
   <ul class="x-list-template" xid="listTemplateUl2">
    <li xid="li2">
   
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row3">
   <div class="x-col x-col-fixed x-col-center" xid="col10" style="width:auto;"><span component="$UI/system/components/justep/button/checkbox" class="x-checkbox" xid="checkbox2"></span></div>
   <div class="x-col x-col-fixed x-col-center" xid="col11" style="width:auto;"><img src="" alt="" xid="image1" bind-attr-src=' val("fImg")' style="width:60px;"></img></div>
   <div class="x-col" xid="col12"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row4">
   <div class="x-col" xid="col13"><span xid="span2" bind-text='val("fTitle")'></span></div>
   </div>
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row5">
   <div class="x-col" xid="col16"><span xid="span7" bind-text="'型号:'+ val(&quot;fSize&quot;)"></span></div>
   </div>
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row6">
   <div class="x-col" xid="col19"><span xid="span8" bind-text="'¥'+ val(&quot;fPrice&quot;)"></span></div>
   <div class="x-col x-col-fixed x-col-center" xid="col20" style="width:auto;"><a component="$UI/system/components/justep/button/button" class="btn btn-link btn-xs btn-only-icon" xid="button3" icon="linear linear-volumemedium">
   <i xid="i3" class="linear linear-volumemedium"></i>
   <span xid="span9"></span></a></div>
   <div class="x-col x-col-fixed" xid="col21" style="width:60px;"><input component="$UI/system/components/justep/input/input" class="form-control input-sm" xid="input1" bind-ref='ref("fNumber")'></input></div>
  <div class="x-col x-col-fixed x-col-center" xid="col22" style="width:auto;"><a component="$UI/system/components/justep/button/button" class="btn btn-link btn-xs btn-only-icon" xid="button4" icon="linear linear-bus">
   <i xid="i4" class="linear linear-bus"></i>
   <span xid="span10"></span></a></div></div></div></div></li></ul>
  </div>
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row2">
   <div class="x-col x-col-center" xid="col7" style="text-align:right;"><span xid="span5"><![CDATA[总价(不含运费)]]></span></div>
  <div class="x-col x-col-fixed" xid="col8" style="width:auto;"></div>
  <div class="x-col x-col-fixed" xid="col9" style="width:auto;"><a component="$UI/system/components/justep/button/button" class="btn btn-default" label="去结算" xid="button2">
   <i xid="i2"></i>
   <span xid="span6">去结算</span></a></div></div></li></ul> </div></div>
  </div>
</div>
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2025-6-19 21:38 , Processed in 0.061603 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表