/**healthrating.wxss 孕期健康评级**/ .healthrating { display: flex; flex-direction: column; align-items: center; background: white; } /*.userinfo-avatar { width: 128rpx; height: 128rpx; margin: 20rpx; border-radius: 50%; } .userinfo-nickname { color: #aaa; } .usermotto { margin-top: 200px; }*/ .healthrating__caution-mark{ position: relative; height: 271.5px; align-items: center; } .healthrating__caution-mark__img{ margin-top: 15px; width: 182px; height: 182px; } .healthrating__caution-mark__title{ position: absolute; top: 0; left: 50%; transform: translateX(-50%); line-height: 182px; width: 300px; color: white; font-size: 20px; text-align: center; margin-top: 14px; } .healthrating__caution-mark__border{ position: absolute; height: 1rpx; background: #d8dbd4; left: 25px; right: 25px; top: 212px } .healthrating__caution-describe{ position: absolute; font-size: 11px; color: #858585; line-height: 120%; top: 227.5px; left: 55px; right: 55px; text-align: center } /*-------------------下方高危列表-------------------*/ .risk-list-bg { margin: 3px; background: white; position:relative; border-radius: 4px; } .risk-list-bg:first-child { margin-top: 5px; } .risk-list-dot { width: 12px; height: 12px; float: left; margin-top: 17px; margin-left: 15px; border-radius: 6px; } .risk-list-title { float: left; margin-top: 12px; margin-left: 5px; margin-bottom: 15px; color: #5e5e5e; font-size: 14px; font: medium; height: 12px; } .risk-list-content { clear: both; margin-left: 15px; margin-right: 50px; /*大于2行显示.....*/ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #858585; font-size: 12px; line-height: 16px; } .risk-list-accessory { position: absolute; width: 16px; height: 16px; transform: translateY(-50%); right: 15px; top: 50%; }