I am trying to make a mobile website. Inside it I've got an image and description. Everything is fine and the website changes itself if using phone or tablet or laptop, but I have one problem. For the description in small devices, it will truncate the text with "..." if the text is too long. How can I make it continue onto the next line?
Code
<body>
<div data-role="page" id="page" data-theme="b">
<div data-role="content" >
</div>
<ul data-role="listview">
<?php do { ?>
<li><a href="#"><img src="../d/p/<?php echo $row_productDaata['strImage']; ?>" alt=""/>
<p style="font-size:18px"><?php echo $row_productDaata['strProductName']; ?></p>
<p><?php echo $row_productDaata['dblP']; ?></p>
<p><?php echo $row_productDaata['strdescription']; ?></p> // here is the problem
</a></li>
<?php } while ($row_productDaata = mysql_fetch_assoc($productDaata)); ?>
</ul>
<div data-role="footer" >
</div>
<script type="text/javascript">
</script>
</body>
Looks like you're using jQuery Mobile. This has already been answered: How to keep this <p> from getting clipped when it exceeds the width of the page?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.